<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>Hello APP</title>
    <link rel="stylesheet" type="text/css" href="../css/api.css" />
    <link rel="stylesheet" type="text/css" href="../css/aui.css" />
    <style type="text/css">
    html,body{
        height: 100%;
    }
    #wrap{
        height: 100%;
        display: -webkit-box;
        display: -webkit-flex;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-flex-flow: column;
               flex-flow: column;
    }
    
    #main{
        -webkit-box-flex: 1; 
        -webkit-flex: 1;
        flex: 1;
    }
    .search-input {
        height: 1.6rem;
        line-height: 1.6rem;
        background: #f5f5f5;
        border-radius: 30px;
        position: relative;
        font-family:"aui_iconfont" !important;
        text-align: left;
        padding-left: 1.5rem;
        color: #999999;
    }
    .search-input:after {
        position: absolute;
        left: 0;
        padding-left: 0.5rem;
        content: "\e615";
    }
    
    #footers{
        padding-top:0;
    }
    </style>
</head>
<body>
    <header class="aui-bar aui-bar-nav" id="header">
        <a class="aui-btn aui-pull-left" tapmode onclick="closeWin()">
            <span class="aui-iconfont aui-icon-left"></span>
        </a>
        <div class="aui-title">历史公告</div>
    </header>
    <div id="main">

    </div>
</body>
<script type="text/javascript" src="../script/api.js"></script>
<script type="text/javascript" src="../script/zepto.min.js"></script>
<script type="text/javascript">
    apiready = function(){
        //适配iOS 7+，Android 4.4+状态栏
        $api.fixStatusBar(header);
        openFrame('announcement');
    };

    function openFrame(name) {
        var header = $api.byId('header');
        var headerPos = $api.offset(header);
        var main = $api.byId('main');
        var mainPos = $api.offset(main);
        api.openFrame({
            name: name,
            url: name+'_frm.html',
            pageParam: {
                id : api.pageParam.id
            },
            reload : true,
            rect: {
                x: 0,
                y: headerPos.h,
                w: 'auto',
                h: api.frameHeight-headerPos.h
            }
        });
    }

    // 打开win
    function openWin(name) {
        api.openWin({
            name: name,
            url: name+'_win.html',
        });
    }

    function closeWin () {
        api.closeWin();
    }

</script>
</html>